Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

refactor: convert dag API to async/await#2664

Merged
alanshaw merged 2 commits into
refactor/block-and-pin-async-awaitfrom
refactor/dag-async-await
Dec 16, 2019
Merged

refactor: convert dag API to async/await#2664
alanshaw merged 2 commits into
refactor/block-and-pin-async-awaitfrom
refactor/dag-async-await

Conversation

@alanshaw
Copy link
Copy Markdown
Member

⚠️ Note: this will be merged into #2660 since it depends on the pin API.

In the future we might need a DAGService like go-ipfs to break the circular dependency.

TODO: fix in ipfs-http-client ipfs-inactive/js-ipfs-http-client#1183 - BREAKING CHANGE: dag.resolve and dag.tree now return an async iterable

Copy link
Copy Markdown
Contributor

@dirkmc dirkmc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One nit but otherwise LGTM 👍

Comment thread src/core/components/dag/put.js
@alanshaw alanshaw merged commit a482044 into refactor/block-and-pin-async-await Dec 16, 2019
@alanshaw alanshaw deleted the refactor/dag-async-await branch December 16, 2019 21:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants